mail/rmail.el (rmail-get-coding-system): Check rmail-get-coding-function before ...
authorK. Handa <handa@gnu.org>
Fri, 10 Jan 2014 23:29:10 +0000 (08:29 +0900)
committerK. Handa <handa@gnu.org>
Fri, 10 Jan 2014 23:29:10 +0000 (08:29 +0900)
lisp/ChangeLog
lisp/mail/rmail.el

index 30267b13b9f75417c87a6cec4b6116a6fef163a1..e0316e714d18dd66d439b5a2c1e161e7d2cc7330 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-10  K. Handa  <handa@gnu.org>
+
+       * mail/rmail.el (rmail-get-coding-system): Check
+       rmail-get-coding-function before "funcall"ing it.
+
 2014-01-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * simple.el (deactivate-mark, activate-mark): Force-mode-line-update
index 7877287f5e6e886caeb54db81a0c9f6e6798a7a4..cfde976ea0b164f29594efab4c31a0e5090cecd3 100644 (file)
@@ -1040,7 +1040,8 @@ This function also reinitializes local variables used by Rmail."
 The buffer is expected to be narrowed to just the header of the message."
   (save-excursion
     (goto-char (point-min))
-    (or (funcall rmail-get-coding-function)
+    (or (if rmail-get-coding-function
+           (funcall rmail-get-coding-function))
        (if (re-search-forward rmail-mime-charset-pattern nil t)
            (coding-system-from-name (match-string 1))
          'undecided))))